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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0c0f;
    color: #e1e4e8;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1c20 0%, #0f1114 100%);
    border-radius: 16px;
    border: 1px solid #2d2f33;
}

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

.logo-icon {
    font-size: 32px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-container {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.warning {
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    border: 1px solid #f85149;
}

.badge.netscape {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid #ffc107;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 30px;
}

.title-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #fff;
}

.subtitle {
    color: #8b949e;
    font-size: 16px;
}

.subtitle strong {
    color: #58a6ff;
}

/* Repo Info */
.repo-info {
    background: #1a1c20;
    border: 1px solid #2d2f33;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 30px;
}

.repo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #0d1117;
    border-radius: 8px;
    text-decoration: none;
    color: #58a6ff;
    font-weight: 500;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.repo-link:hover {
    background: #1f2429;
    transform: translateX(5px);
}

.repo-icon {
    font-size: 20px;
}

.repo-arrow {
    margin-left: auto;
    opacity: 0.5;
}

.repo-stats {
    display: flex;
    gap: 20px;
    color: #8b949e;
    font-size: 14px;
}

.repo-stats span {
    cursor: pointer;
    transition: color 0.3s ease;
}

.repo-stats span:hover {
    color: #58a6ff;
}

/* Cards */
.card {
    background: #1a1c20;
    border: 1px solid #2d2f33;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

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

.card-header h3 {
    color: #fff;
    font-size: 18px;
}

.help-link {
    color: #58a6ff;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 12px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.help-link:hover {
    background: rgba(88, 166, 255, 0.2);
}

/* Textarea */
textarea {
    width: 100%;
    height: 150px;
    padding: 16px;
    background: #0d1117;
    border: 1px solid #2d2f33;
    border-radius: 12px;
    color: #e1e4e8;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-primary, .btn-secondary, .btn-copy, .btn-download {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    flex: 2;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 160, 67, 0.3);
}

.btn-secondary {
    background: #2d2f33;
    color: #e1e4e8;
    flex: 1;
}

.btn-secondary:hover {
    background: #3d3f44;
}

.btn-copy {
    background: #1f6feb;
    color: white;
    flex: 1;
}

.btn-copy:hover {
    background: #388bfd;
}

.btn-download {
    background: #8957e5;
    color: white;
    flex: 1;
}

.btn-download:hover {
    background: #9d6cff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 87, 229, 0.3);
}

/* Output Section */
.output-section {
    margin-top: 20px;
}

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

.cookie-count {
    background: #2d2f33;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #8b949e;
}

.output-box {
    background: #0d1117;
    border: 1px solid #2d2f33;
    border-radius: 12px;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #7ee3b8;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
}

/* Guide Card */
#guideCard {
    display: none;
}

.guide-steps {
    margin: 20px 0;
}

.step {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px;
    background: #0d1117;
    border-radius: 12px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #58a6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0d1117;
    flex-shrink: 0;
}

.step-content h4 {
    color: #fff;
    margin-bottom: 4px;
    font-size: 14px;
}

.step-content p {
    color: #8b949e;
    font-size: 13px;
}

.guide-note {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid #f85149;
    border-radius: 8px;
    padding: 12px;
    color: #f85149;
    font-size: 13px;
    margin-top: 16px;
}

.close-guide {
    color: #8b949e;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
}

.close-guide:hover {
    color: #fff;
}

/* Example Box */
.example-box {
    background: #0d1117;
    border: 1px solid #2d2f33;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: #7ee3b8;
    overflow-x: auto;
    margin: 16px 0;
}

.format-note {
    color: #f85149;
    font-size: 13px;
    text-align: center;
    font-style: italic;
    font-weight: bold;
}

/* Commands Grid */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.command-item {
    background: #0d1117;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.command {
    color: #58a6ff;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.desc {
    color: #8b949e;
    font-size: 12px;
}

/* Warning Card */
.warning-card {
    background: rgba(248, 81, 73, 0.05);
    border-color: #f85149;
}

.warning-card h3 {
    color: #f85149;
    margin-bottom: 16px;
}

.warning-list {
    list-style: none;
    margin-top: 16px;
}

.warning-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(248, 81, 73, 0.2);
    color: #e1e4e8;
}

.warning-list li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #2d2f33;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: #8b949e;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #58a6ff;
}

.license {
    color: #6e7681;
    font-size: 14px;
}

.license .small {
    font-size: 12px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .badge-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .repo-stats {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
    }
}