* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    --yellow-600: #ca8a04;
    --yellow-700: #a16207;
    --black: #000000;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --white: #ffffff;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #4c1d95 50%, #0f172a 100%);
    color: var(--white);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(202, 138, 4, 0.3);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--yellow-600), var(--yellow-700));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: var(--black);
    border: 2px solid rgba(250, 204, 21, 0.3);
    box-shadow: 0 0 20px rgba(202, 138, 4, 0.5);
}

.logo h1 {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(to right, var(--yellow-400), var(--yellow-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 10px;
    color: var(--yellow-500);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--yellow-400);
}

.btn-primary {
    background: linear-gradient(to right, var(--yellow-600), var(--yellow-700));
    color: var(--black);
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(202, 138, 4, 0.5);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(202, 138, 4, 0.7);
}

.admin-btn {
    color: var(--gray-400);
    transition: color 0.3s;
}

.admin-btn:hover {
    color: var(--yellow-400);
}

/* Hero Section */
.hero {
    padding: 40px 0 30px;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 24px;
    padding: 8px 16px;
    color: var(--yellow-400);
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, var(--yellow-400), var(--yellow-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--gray-300);
    max-width: 48rem;
    margin: 0 auto 30px;
    line-height: 1.5;
}

.search-box {
    max-width: 42rem;
    margin: 0 auto;
    position: relative;
}

.search-box svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--yellow-400);
}

.search-box input {
    width: 100%;
    padding: 20px 20px 20px 56px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    color: var(--white);
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--yellow-500);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 48rem;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: scale(1.05);
    border-color: var(--yellow-500);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to right, var(--yellow-400), var(--yellow-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--gray-400);
    font-size: 14px;
}

/* Features */
.features {
    padding: 32px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    padding: 24px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
}

/* Categories */
.categories {
    padding: 20px 0 30px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(250, 204, 21, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background: linear-gradient(to right, var(--yellow-600), var(--yellow-700));
    color: var(--black);
    border-color: var(--yellow-400);
}

/* Scripts Grid */
.scripts {
    padding: 30px 0;
}

.features-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 0;
}

.info-card {
    background: linear-gradient(135deg, rgba(202, 138, 4, 0.1), rgba(250, 204, 21, 0.05));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--yellow-500);
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.2);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.info-card p {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 24px;
}

.script-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.script-card:hover {
    transform: scale(1.02);
    border-color: var(--yellow-500);
    box-shadow: 0 0 40px rgba(250, 204, 21, 0.2);
}

.video-container {
    position: relative;
    height: 200px;
    background: var(--black);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: var(--white);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge svg {
    color: var(--yellow-400);
}

.card-content {
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
}

.category-badge {
    background: linear-gradient(to right, rgba(250, 204, 21, 0.2), rgba(234, 179, 8, 0.2));
    color: var(--yellow-300);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid rgba(250, 204, 21, 0.3);
    white-space: nowrap;
}

.description {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.code-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.code-header span {
    color: var(--yellow-400);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
}

.code-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray-400);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--yellow-500);
    color: var(--yellow-400);
}

.code-box pre {
    margin: 0;
    max-height: 128px;
    overflow-y: auto;
	overflow-x: hidden;
	word-break: break-word;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--gray-300);
	white-space: pre-wrap;
}

.btn-secondary {
    background: linear-gradient(to right, var(--yellow-600), var(--yellow-700));
    color: var(--black);
    padding: 8px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(250, 204, 21, 0.3);
    margin-top: 80px;
    padding: 48px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.footer-logo span {
    font-weight: 900;
    font-size: 18px;
}

.footer-section p {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--yellow-400);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(250, 204, 21, 0.2);
    text-align: center;
    color: var(--gray-400);
    font-size: 14px;
}

/* Admin Styles */
.admin-body {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.admin-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(250, 204, 21, 0.3);
    padding: 16px 0;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo h1 {
    font-size: 24px;
    font-weight: 900;
    color: var(--yellow-400);
}

.admin-logo p {
    font-size: 12px;
    color: var(--gray-400);
}

.admin-actions {
    display: flex;
    gap: 12px;
}

.btn-success {
    background: linear-gradient(to right, #16a34a, #15803d);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-success:hover {
    transform: scale(1.05);
}

.btn-danger {
    background: linear-gradient(to right, #dc2626, #b91c1c);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.admin-main {
    padding: 48px 0;
}

.admin-content h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.text-muted {
    color: var(--gray-400);
    margin-bottom: 32px;
}

.scripts-list {
    display: grid;
    gap: 24px;
}

.admin-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-card-content {
    flex: 1;
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-card-header h3 {
    font-size: 20px;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.badge-btc {
    background: rgba(250, 204, 21, 0.2);
    color: var(--yellow-300);
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.badge-eth {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-trading {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-tools {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.admin-card-content p {
    color: var(--gray-400);
    margin-bottom: 12px;
}

.admin-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-400);
}

.admin-card-actions {
    display: flex;
    gap: 8px;
}

.btn-edit {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
}

.btn-edit:hover {
    color: #3b82f6;
    background: rgba(96, 165, 250, 0.1);
}

.btn-delete {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

.btn-delete:hover {
    color: #ef4444;
    background: rgba(248, 113, 113, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--gray-800);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    max-width: 64rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
}

.modal-header h2 {
    font-size: 24px;
}

.btn-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.btn-close:hover {
    color: var(--white);
}

.modal-content form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 12px;
    color: var(--white);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--yellow-500);
}

.code-textarea {
    font-family: 'Courier New', monospace;
    color: #22c55e;
    background: rgba(0, 0, 0, 0.5);
}

.help-text {
    margin-top: 4px;
    font-size: 12px;
    color: var(--gray-400);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding-top: 24px;
}

.btn-block {
    width: 100%;
}

/* Login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 16px;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    padding: 32px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .logo-icon {
    margin: 0 auto 16px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray-400);
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--yellow-400);
    text-decoration: none;
}

/* Data Table */
.categories-table {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(250, 204, 21, 0.1);
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: var(--yellow-400);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(250, 204, 21, 0.3);
}

.data-table td {
    padding: 16px;
    color: var(--white);
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
}

.data-table tbody tr:hover {
    background: rgba(250, 204, 21, 0.05);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table code {
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: var(--yellow-400);
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* Tracking Stats */
.tracking-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-box {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(250, 204, 21, 0.05));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--yellow-400);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-detail {
    font-size: 14px;
    color: var(--gray-400);
}

.recent-actions {
    margin-top: 40px;
}

.recent-actions h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 24px;
}

/* Script Detail Page */
.script-detail-section {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.script-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.script-video-container {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.script-video-container video,
.script-video-container iframe {
    width: 100%;
    height: 400px;
    display: block;
}

.no-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    color: #94a3b8;
}

.script-content-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.script-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.script-title {
    font-size: 32px;
    font-weight: 900;
    color: white;
    margin: 0;
    flex: 1;
    line-height: 1.2;
}

.script-category {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: black;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.script-description-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #e2e8f0;
}

.script-code-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.code-content {
    max-height: 500px;
    overflow-y: auto;
}

.code-content pre {
    margin: 0;
    padding: 25px;
    background: transparent;
}

.code-content code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #22c55e;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Share Section */
.share-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.share-header {
    margin-bottom: 20px;
}

.share-title {
    color: #facc15;
    font-size: 18px;
    font-weight: 700;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.share-button.twitter { background: #1DA1F2; }
.share-button.facebook { background: #4267B2; }
.share-button.linkedin { background: #0077B5; }
.share-button.telegram { background: #0088CC; }
.share-button.reddit { background: #FF5700; }
.share-button.copy-link { background: #6b7280; }

.share-icon {
    font-size: 16px;
}

.script-navigation {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-home {
    color: #facc15;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-home:hover {
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 30px 0 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .scripts-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .admin-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .script-content-card {
        padding: 25px;
    }
    
    .script-title {
        font-size: 24px;
    }
    
    .script-video-container video,
    .script-video-container iframe {
        height: 300px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .code-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .script-title-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .script-content-card {
        padding: 20px;
    }
    
    .script-title {
        font-size: 20px;
    }
    
    .script-description-box {
        padding: 20px;
        font-size: 14px;
    }
    
    .code-content {
        max-height: 300px;
    }
    
    .code-content pre {
        padding: 15px;
    }
}

/* SEO Optimizations */
video, iframe {
    loading: lazy;
}

.hero {
    will-change: transform;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.script-card {
    contain: layout style paint;
}

.code-box pre {
    content-visibility: auto;
}

/* إزالة العناصر غير المستخدمة */
.card-footer,
.video-stats {
    display: none !important;
}

/* تحسين المساحة بعد إزالة الفوتر */
.card-content {
    padding-bottom: 20px;
}

.code-box {
    margin-bottom: 0;
}


/* === Refined Social Share Buttons (2025-11-11) === */
.social-share-section{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.social-share-section .share-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.social-share-section .share-header span{
  font-weight:700;
  letter-spacing:.2px;
}
.share-stats .share-count{
  opacity:.8;
  font-size:.9rem;
}

.share-buttons-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

/* unify .share-btn (old) and .share-button (new) */
.share-button, .share-btn{
  display:flex;
  align-items:center;
  gap: 6px;
  width:100%;
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: #f9fafb;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  text-decoration:none;
}
.share-button:hover, .share-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.18);
}
.share-button:active, .share-btn:active{
  transform: translateY(0);
}

.share-button .share-label{ line-height:1; }
.share-button .share-icon, .share-btn svg{
  width: 18px; height: 18px;
}

/* Platform accents as subtle glow + left stripe */
.share-button.twitter, .share-btn.twitter   { box-shadow: inset 4px 0 0 0 #1DA1F2; }
.share-button.facebook, .share-btn.facebook { box-shadow: inset 4px 0 0 0 #1877F2; }
.share-button.linkedin, .share-btn.linkedin { box-shadow: inset 4px 0 0 0 #0A66C2; }
.share-button.telegram, .share-btn.telegram { box-shadow: inset 4px 0 0 0 #229ED9; }
.share-button.reddit, .share-btn.reddit     { box-shadow: inset 4px 0 0 0 #FF5700; }
.share-button.copy-link, .share-btn.copy-link { box-shadow: inset 4px 0 0 0 #6b7280; }

/* Compact on small screens */
@media (max-width: 520px){
  .share-buttons-grid{ grid-template-columns: 1fr; }
}


/* ==== Card CTA & Links to detail ==== */
.script-link{ color: #f3f4f6; text-decoration: none; }
.script-link:hover{ text-decoration: underline; }

.card-cta{ margin-top: 10px; }
.view-script-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px; font-weight:700;
  border:1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color:#f9fafb; text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.view-script-btn:hover{ transform: translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,.25); border-color: rgba(255,255,255,0.18); }


/* === Polished Social Share Buttons (public) === */
.social-share-section{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.social-share-section .share-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:14px;
}
.social-share-section .share-header span{
  font-weight:800; letter-spacing:.25px; font-size:1rem;
}

.share-buttons-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.share-button, .share-btn{
  display:flex; align-items:center; gap: 6px; justify-content:center;
  border-radius: 16px;
  padding: 8px 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(100% 100% at 0% 0%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  color:#f9fafb; text-decoration:none; cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  user-select:none;
}
.share-button svg, .share-btn svg{ width:14px; height:14px; }
.share-button:focus-visible, .share-btn:focus-visible{
  outline: 2px solid #facc15; outline-offset: 2px;
}
.share-button:hover, .share-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.2);
}
.share-button:active, .share-btn:active{ transform: translateY(0); }

/* colored side stripes */
.share-button.twitter, .share-btn.twitter   { box-shadow: inset 4px 0 0 0 #1DA1F2; }
.share-button.facebook, .share-btn.facebook { box-shadow: inset 4px 0 0 0 #1877F2; }
.share-button.linkedin, .share-btn.linkedin { box-shadow: inset 4px 0 0 0 #0A66C2; }
.share-button.telegram, .share-btn.telegram { box-shadow: inset 4px 0 0 0 #229ED9; }
.share-button.reddit, .share-btn.reddit     { box-shadow: inset 4px 0 0 0 #FF5700; }
.share-button.copy-link, .share-btn.copy-link { box-shadow: inset 4px 0 0 0 #6b7280; }

@media (max-width:560px){
  .share-buttons-grid{ grid-template-columns: 1fr; }
}


/* === Circular Share Buttons === */
.share-button, .share-btn {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

.share-button svg, .share-btn svg, .share-icon {
    width: 28px !important;
    height: 28px !important;
}

.share-label {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    text-align: center;
    color: #fff;
}

.share-button.whatsapp, .share-btn.whatsapp {
    background: #25D366 !important;
    box-shadow: inset 4px 0 0 0 #25D366 !important;
}


/* === Share Row (inline, compact, circular) === */
.share-buttons, .share-buttons-grid{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  gap:10px !important;
  align-items:center !important;
}
.share-button, .share-btn{
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  min-height:48px !important;
  border-radius:50% !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  padding:0 !important; gap:0 !important; font-size:0 !important;
  border:none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
}
.share-button svg, .share-btn svg, .share-icon{
  width:22px !important; height:22px !important;
}
/* Keep Copy last visually even if DOM differs */
.share-button.copy-link, .share-btn.copy-link{ order:99; }

/* WhatsApp brand color */
.share-button.whatsapp, .share-btn.whatsapp { background:#25D366 !important; }


/* === Share Bar — Professional Polish === */
.share-bar{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(6px);
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  width: fit-content;
}
.share-bar .share-buttons{ display:flex !important; flex-wrap:nowrap !important; gap:10px !important; }
.share-button, .share-btn{
  width:46px !important; height:46px !important; min-width:46px !important; min-height:46px !important;
  border-radius:50% !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  padding:0 !important; gap:0 !important; font-size:0 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.24) !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.share-button:hover{ transform: translateY(-1px) scale(1.04); box-shadow:0 12px 28px rgba(0,0,0,.28) !important; }
.share-button:active{ transform: scale(0.98); }
.share-button:focus-visible{ outline: 2px solid #facc15; outline-offset: 2px; }
.share-button svg, .share-btn svg, .share-icon{ width:20px !important; height:20px !important; color:#fff; }
.share-button.twitter{ background:#000; }
.share-button.facebook{ background:#1877F2; }
.share-button.linkedin{ background:#0A66C2; }
.share-button.telegram{ background:#229ED9; }
.share-button.reddit{ background:#FF5700; }
.share-button.whatsapp{ background:#25D366; }
.share-button.copy-link{ background:#6b7280; order:99; }
/* Tooltip */
.share-button[data-tip]{ position: relative; }
.share-button[data-tip]:hover::after, .share-button[data-tip]:focus-visible::after{
  content: attr(data-tip);
  position:absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: rgba(17,24,39,0.95); color:#e5e7eb;
  border:1px solid rgba(255,255,255,0.12); border-radius:8px;
  padding:6px 10px; font-size:12px; white-space:nowrap; pointer-events:none;
  box-shadow:0 8px 20px rgba(0,0,0,.3);
}
.share-button.copy-link.copied{ background:#16a34a !important; border-color:rgba(255,255,255,0.18) !important; }


/* Center share bar and give breathing space */
.share-bar-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 6px;
}
.share-bar{ margin: 0 auto; }

.share-button.reddit {
    background: #FF5700 !important; /* لون Reddit الأصلي */
}

.share-button.reddit .reddit-icon {
    width: 32px !important;
    height: 32px !important;
    display: block;
    fill: #fff !important; /* يجعل الأيقونة بيضاء */
}

/* WhatsApp Button Style */
.share-button.whatsapp {
  background: #25D366 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon Size */
.share-button.whatsapp .whatsapp-ico {
  width: 50px !important;
  height: 50px !important;
  fill: #fff !important;
  display: block;
}




/* === Share Bar Fix for script.php (scoped) === */
.social-share-section.script-share .share-bar-wrap { 
  display:flex; justify-content:flex-start; align-items:center; width:100%;
}
.social-share-section.script-share .share-bar { 
  display:flex; flex-wrap:wrap; gap:10px; align-items:center; 
}
.social-share-section.script-share .share-button { 
  width:44px !important; height:44px !important; min-width:44px !important; 
  border-radius:999px; 
}
.social-share-section.script-share .share-button svg { 
  width:22px; height:22px;
}
/* Align header & bar neatly inside the card */
.social-share-section.script-share .share-header { 
  display:flex; align-items:center; gap:10px; margin-bottom:12px;
}
/* Prevent vertical stacking specific to script page side column */
.social-share-section.script-share .share-buttons, 
.social-share-section.script-share .share-list { 
  display:flex; gap:10px; flex-wrap:wrap;
}



/* === Share Bar: script.php horizontal row under header === */
.social-share-section.script-share .share-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.social-share-section.script-share .share-bar-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.social-share-section.script-share .share-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px;
}

.social-share-section.script-share .share-button,
.social-share-section.script-share .share-btn {
  display: inline-flex !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
}

.social-share-section.script-share .share-button svg,
.social-share-section.script-share .share-btn svg {
  width: 20px !important;
  height: 20px !important;
}



/* === Final Share Layout for script.php only (scoped) === */
.social-share-section.script-share {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
}

.social-share-section.script-share .share-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.social-share-section.script-share .share-bar-wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
}

.social-share-section.script-share .share-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  align-items: center !important;
}

.social-share-section.script-share .share-buttons {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  align-items: center !important;
}

.social-share-section.script-share .share-button,
.social-share-section.script-share .share-btn {
  display: inline-flex !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  align-items: center !important;
  justify-content: center !important;
}

.social-share-section.script-share .share-button svg,
.social-share-section.script-share .share-btn svg {
  width: 20px !important;
  height: 20px !important;
}
/* ===== شعار الهيدر - معدل ومحسّن ===== */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%;
    padding: 5px 0;
}

.logo-img {
    height: 35px; /* حجم مثالي للشعار */
    width: auto;
    max-width: 120px; /* الحفاظ على التناسب */
    transition: all 0.3s ease;
    filter: brightness(1);
    object-fit: contain;
}

.logo-img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* إزالة الخلفية والحدود السابقة */
.navbar .logo {
    background: none;
    padding: 0;
    border: none;
    margin: 0;
}

/* ===== شعار الفوتر - معدل ===== */
.footer-logo-img {
    height: 30px;
    width: auto;
    max-width: 100px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

/* ===== تحسينات للجوال ===== */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
        max-width: 110px;
    }
    
    .footer-logo-img {
        height: 28px;
        max-width: 95px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
        max-width: 100px;
    }
    
    .footer-logo-img {
        height: 26px;
        max-width: 90px;
    }
}

/* تحسينات للشعار في وضع الهاتف العمودي */
@media (max-width: 360px) {
    .logo-img {
        height: 28px;
        max-width: 95px;
    }
}

