:root {
    --bg-color: #07090e;
    --card-bg: rgba(18, 24, 38, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-color: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --font-family: 'Inter', sans-serif;
}

body {
    margin: 0; padding: 20px;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex; justify-content: center;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.15), transparent 60%);
}

.main-container { width: 100%; max-width: 900px; margin-top: 40px; }

.header-section { text-align: center; margin-bottom: 40px; }
.logo { width: 60px; margin-bottom: 15px; border-radius: 12px; }
.main-title { text-align: center; font-size: 32px; font-weight: 700; color: #ffffff; margin: 0 0 10px 0; letter-spacing: -1px; }
.subtitle { text-align: center; font-size: 15px; color: var(--text-secondary); }

.script-table-container {
    background: var(--card-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.script-table { width: 100%; border-collapse: collapse; text-align: left; }
.script-table th { background-color: rgba(255, 255, 255, 0.03); color: var(--text-secondary); padding: 18px 25px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border-color); }
.script-table td { padding: 25px; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.script-table tr:last-child td { border-bottom: none; }
.script-table tr:hover { background-color: rgba(255, 255, 255, 0.02); }

.script-name { text-align: center; font-size: 17px; font-weight: 600; color: #ffffff; margin-bottom: 8px; }
.script-desc { text-align: center; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.code-wrapper { position: relative; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.code-wrapper pre { margin: 0; padding: 15px 90px 15px 15px; overflow-x: auto; }
.code-wrapper code { font-family: 'Courier New', monospace; font-size: 14px; color: #a5d6ff; white-space: pre-wrap; word-break: break-all; }

.btn-copy {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color);
    color: #ffffff; padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; transition: 0.2s;
}
.btn-copy:hover { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #ffffff; border-color: #3b82f6; }
.btn-copy.copied { background: #10b981; border-color: #10b981; color: #ffffff; }

.footer { text-align: center; margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.footer p { font-size: 13px; color: var(--text-secondary); }
.footer a { color: var(--primary-color); text-decoration: none; }

.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 100px);
    background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #ffffff; padding: 12px 24px; border-radius: 30px;
    font-size: 14px; font-weight: 600; opacity: 0; transition: all 0.4s; z-index: 1000; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }