:root {
    --bg-dark: #0c1017;
    --card-bg: #151c28;
    --card-border: #232e42;
    --text-primary: #e6edf3;
    --text-secondary: #8b9bb4;
    --accent-orange: #ff6b00;
    --accent-orange-glow: rgba(255, 107, 0, 0.45);
    --accent-orange-hover: #ff8526;
    --accent-cyan: #00e5ff;
    --accent-green: #2ecc71;
    --accent-red: #e74c3c;
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 16px;
}

.app-container {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 24px;
}

.header-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.app-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

/* Main Card */
.main-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan));
}

/* Players Checklist Section */
.players-section {
    margin-bottom: 26px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.player-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-checkbox-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #0f1521;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease-in-out;
}

.player-checkbox-card:hover {
    border-color: #3b4e6d;
    background: #141c2c;
    transform: translateX(2px);
}

.player-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkbox Square */
.custom-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background-color: #0b0f16;
    border: 2px solid #32445e;
    border-radius: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.custom-checkbox::after {
    content: '';
    display: none;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Checked state */
.player-checkbox-card.is-checked {
    background: rgba(255, 107, 0, 0.08);
    border-color: var(--accent-orange);
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.15);
}

.player-input:checked ~ .custom-checkbox {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.player-input:checked ~ .custom-checkbox::after {
    display: block;
}

.player-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.player-checkbox-card.is-checked .player-name {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.4);
}

/* Disabled state when test option is active */
.player-checkbox-card.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #1a2230;
    background: #0b0f16;
}

.player-grid-divider {
    height: 1px;
    background: var(--card-border);
    margin: 4px 0;
}

/* Test player card specific styling */
.player-checkbox-card.test-player-card.is-checked {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}

.player-checkbox-card.test-player-card .player-input:checked ~ .custom-checkbox {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.player-checkbox-card.test-player-card.is-checked .player-name {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* Action Section & Huge Button */
.action-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-notify {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #ff7b00 0%, #e65100 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--accent-orange-glow);
    transition: all 0.2s ease-in-out;
}

.btn-notify:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 107, 0, 0.65);
    background: linear-gradient(135deg, #ff8c1a 0%, #f55a00 100%);
}

.btn-notify:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 4px 12px var(--accent-orange-glow);
}

.btn-notify:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    background: #232e42;
    color: #8b9bb4;
}

.btn-icon {
    font-size: 22px;
}

/* Status message */
.status-box {
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.status-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--accent-green);
    color: #2ecc71;
}

.status-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--accent-red);
    color: #e74c3c;
}

.status-loading {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Collapsible Subscribe Box with extra spacing */
.subscribe-card-collapsible {
    margin-top: 48px; /* Godt med mellemrum */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: border-color 0.2s;
}

.subscribe-card-collapsible[open] {
    border-color: #3b4e6d;
}

.subscribe-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.subscribe-summary::-webkit-details-marker {
    display: none;
}

.summary-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #fff;
}

.summary-subtitle {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 2px;
}

.accordion-arrow {
    font-size: 18px;
    color: var(--accent-cyan);
    transition: transform 0.2s ease-in-out;
}

.subscribe-card-collapsible[open] .accordion-arrow {
    transform: rotate(180deg);
}

.subscribe-content {
    padding: 0 22px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #1c2637;
    padding-top: 18px;
}

.sub-heading {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-top: 4px;
    margin-bottom: 2px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #0f151f;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.copy-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-box code {
    font-family: monospace;
    background: #1a2333;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--accent-cyan);
    font-size: 14px;
}

.btn-secondary {
    background: #1e2838;
    color: #fff;
    border: 1px solid #33445d;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #2b394e;
}

.link-btn {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.link-btn:hover {
    color: #fff;
    text-decoration: underline;
}

.guide-box {
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--accent-orange);
    padding: 16px 18px;
    border-radius: 0 8px 8px 0;
}

.guide-box ol {
    margin-left: 20px;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.75;
}

.guide-box ol li {
    margin-bottom: 8px;
}

.guide-box ol li:last-child {
    margin-bottom: 0;
}

.guide-box a {
    color: var(--accent-cyan);
}

.highlight-topic {
    color: var(--accent-orange);
}

/* Footer */
.app-footer {
    text-align: center;
    color: #4b586d;
    font-size: 12px;
    margin-top: 24px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
