/* ===============================================
   STARBORN - CONSOLIDATED MAIN STYLESHEET
   Contains ALL common styles shared across pages
   =============================================== */

/* ===============================================
   CSS Variables
   =============================================== */

:root {
    --background-primary: #0a0a14;
    --background-secondary: #14141e;
    --background-tertiary: #1a1a28;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --border-color: rgba(100, 100, 150, 0.3);
    --accent-color: #00ffff;
}

/* ===============================================
   CSS Reset & Base Styles
   =============================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
}

/* ===============================================
   Animations
   =============================================== */

@keyframes marbleShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   Navigation Bar
   =============================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.brand-title {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #e0b3ff 0%, #ffb3d9 25%, #b3e0ff 50%, #ffffff 75%, #e0b3ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(224, 179, 255, 0.3);
    animation: marbleShift 8s ease infinite;
}

.brand-title .star {
    font-size: 1.2em;
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    top: +0.01em;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 300;
    background: linear-gradient(135deg, #c9a0e8 0%, #ffcce6 25%, #99d6ff 50%, #e6e6ff 75%, #c9a0e8 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    font-style: italic;
    text-transform: lowercase;
    animation: marbleShift 8s ease infinite;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid #e0b3ff;
    animation: marbleShift 8s ease infinite;
}

.nav-account {
    position: relative;
    z-index: 1100;
}

.login-btn {
    background: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 179, 255, 0.3);
    animation: marbleShift 8s ease infinite;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(224, 179, 255, 0.5);
}

.account-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(224, 179, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    z-index: 3100;
}

.account-menu.hidden {
    display: none;
}

.account-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.account-avatar {
    font-size: 40px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid #00ffff;
}

.account-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.account-name {
    color: #00ffff;
    font-weight: bold;
    font-size: 16px;
}

.account-rank {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #ff6666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
}

/* ===============================================
   Modal System
   =============================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100002;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 179, 217, 0.3);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(224, 179, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    background: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: marbleShift 8s ease infinite;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ffb3d9;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
}

/* ===============================================
   Buttons
   =============================================== */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    background-size: 200% 200%;
    color: white;
    animation: marbleShift 8s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(224, 179, 255, 0.4);
}

.btn-secondary {
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--background-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(100, 100, 150, 0.2);
}

.btn-danger {
    background: #ff4444;
    color: white;
}

.btn-danger:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    background: rgba(224, 179, 255, 0.1);
    border: 1px solid rgba(255, 179, 217, 0.3);
    color: #ffb3d9;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #ffb3d9;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.button-group .btn {
    flex: 1;
}

/* ===============================================
   Form Elements
   =============================================== */

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

.form-group label {
    display: block;
    font-weight: bold;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-group select option {
    background: var(--background-tertiary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffb3d9;
    box-shadow: 0 0 10px rgba(255, 179, 217, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #22223a;
    color: #fff;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #ffb3d9;
    box-shadow: 0 0 10px rgba(255, 179, 217, 0.3);
}

.form-select {
    padding: 10px;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-select option {
    background: var(--background-tertiary);
    color: var(--text-primary);
}

.form-select:focus {
    outline: none;
    border-color: #ffb3d9;
    box-shadow: 0 0 10px rgba(255, 179, 217, 0.3);
}

.form-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #aaa;
}

.form-footer a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #6bb3ff;
    text-decoration: underline;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.checkbox-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
}

.checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    color: #22223a;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(224, 179, 255, 0.4);
}

/* ===============================================
   Tabs System
   =============================================== */

.tabs {
    display: flex;
    margin-top: 20px;
    gap: 10px;
}

.tab-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-button {
    padding: 10px 20px;
    background: #232323;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: #eee;
    transition: 0.2s;
}

.tab-button:hover {
    background: #333;
}

.tab-button.active {
    background: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    background-size: 200% 200%;
    color: white;
    border-bottom: 2px solid #e0b3ff;
    animation: marbleShift 8s ease infinite;
}

.tab-panel {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
}

.tab-panel.active {
    display: block;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ===============================================
   Section Cards & Headers
   =============================================== */

.section {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid #e0b3ff;
    padding-bottom: 10px;
    animation: marbleShift 8s ease infinite;
}

.section-card {
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.compact-card {
    margin-bottom: 10px;
}

.section-header {
    padding: 12px 20px;
    background: rgba(224, 179, 255, 0.05);
    border-bottom: 1px solid rgba(224, 179, 255, 0.2);
    background-image: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    animation: marbleShift 8s ease infinite;
}

.section-header:hover {
    background-color: rgba(224, 179, 255, 0.1);
}

.section-content {
    padding: 15px 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.collapse-icon {
    font-size: 12px;
    color: rgba(0, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.reset-view-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    line-height: 1;
}

.reset-view-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: rotate(180deg);
}

/* ===============================================
   Container & Layout Helpers
   =============================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: none; /* Hidden by default, shown when logged in */
}

.character-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
    display: none; /* Hidden by default, shown when logged in */
}

/* ===============================================
   Selector & Filter Groups
   =============================================== */

.selector-group {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selector-group label {
    font-weight: bold;
    color: var(--text-primary);
}

.selector-group select {
    flex: 1;
    max-width: 400px;
    padding: 10px;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 5px;
    font-size: 16px;
}

.selector-group select option {
    background: var(--background-tertiary);
    color: var(--text-primary);
}

/* ===============================================
   Cards & Items
   =============================================== */

.card {
    background: #262626;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #383838;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-card {
    display: flex;
    gap: 20px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #333;
}

.portrait {
    width: 150px;
    height: 150px;
    background: url('../img/default.png') center/cover;
    border-radius: 12px;
    border: 2px solid #444;
}

.hero-info h1 {
    font-size: 2em;
    margin: 0;
}

/* ===============================================
   Stats & Grids
   =============================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-box {
    background: #262626;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #383838;
}

.item-entry {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-entry:last-child {
    margin-bottom: 0;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.item-details {
    color: var(--text-secondary);
    font-size: 14px;
}

.items-list:empty::before {
    content: "No items yet. Add one below.";
    color: var(--text-tertiary);
    font-style: italic;
}

/* ===============================================
   Loading & Empty States
   =============================================== */

.loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.hidden {
    display: none;
}

/* ===============================================
   Notification System
   =============================================== */

.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(224, 179, 255, 0.3);
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    animation: slideInRight 0.3s ease;
    display: none; /* Hidden by default */
    opacity: 0;
}

.notification.show {
    display: block;
    opacity: 1;
}

.notification.hidden {
    display: none;
}

.notification.success {
    border-color: rgba(40, 167, 69, 0.5);
    background: rgba(20, 40, 20, 0.95);
}

.notification.error {
    border-color: rgba(220, 53, 69, 0.5);
    background: rgba(40, 20, 20, 0.95);
}

.notification.warning {
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(40, 35, 20, 0.95);
}

.notification.info {
    border-color: rgba(0, 123, 255, 0.5);
    background: rgba(20, 25, 40, 0.95);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===============================================
   Scrollbar Styles
   =============================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 20, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(224, 179, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(224, 179, 255, 0.5);
}

/* ===============================================
   Character-Specific Common Elements
   =============================================== */

.character-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.character-title {
    color: #00ffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.character-name {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.character-tags-below {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.character-tags-below .tag {
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.character-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.character-code {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-family: 'Consolas', 'Monaco', monospace;
    text-transform: uppercase;
}

.character-owner {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.character-status {
    color: #00ff88;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 15px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 2px;
}

.character-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    margin-bottom: 20px;
}

.image-card {
    margin-bottom: 15px;
}

.character-image {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ===============================================
   Aspect & Skills (Common Elements)
   =============================================== */

.aspect-block {
    margin-bottom: 10px;
}

.aspect-label {
    color: rgba(0, 255, 255, 0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.aspect-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aspect-item {
    padding: 6px 12px;
    background: rgba(0, 255, 255, 0.05);
    border-left: 2px solid #00ffff;
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    flex-shrink: 0;
}

.skills-pyramid,
.skills-compact {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.skill-tier {
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.skill-modifier {
    color: #00ffff;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
    font-size: 11px;
}

.skill-modifier.positive {
    color: #00ff88;
}

.skill-modifier.negative {
    color: #ff6666;
}

.skill-names {
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    font-size: 11px;
    line-height: 1.4;
}

.skill-divider {
    margin: 10px 0;
    border: none;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.base-skills-label {
    color: rgba(0, 255, 255, 0.7);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ===============================================
   Ability Compact (Common Character Element)
   =============================================== */

.ability-compact {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid rgba(0, 255, 255, 0.5);
    border-radius: 2px;
}

.ability-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.ability-name {
    color: #00ffff;
    font-weight: 600;
    font-size: 13px;
}

.ability-cost {
    color: rgba(255, 179, 217, 0.8);
    font-size: 11px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.ability-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.5;
}

/* ===============================================
   Edit Character Button (Common FAB)
   =============================================== */

.edit-character-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
    color: #ffffff;
}

.edit-character-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.edit-character-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.edit-character-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ===============================================
   Timeline Elements (Common)
   =============================================== */

.timeline-tag {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-location {
    color: rgba(255, 255, 255, 0.6);
}

.timeline-location::before {
    content: '📍';
    margin-right: 4px;
}

.timeline-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 1px solid;
}

.timeline-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.timeline-objective {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===============================================
   Hamburger Menu (Mobile)
   =============================================== */

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 3001;
    position: relative;
    pointer-events: auto;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    background-size: 200% 200%;
    border-radius: 2px;
    transition: all 0.3s ease;
    animation: marbleShift 8s ease infinite;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===============================================
   Responsive Design
   =============================================== */

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
        height: 60px;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 20, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 255, 255, 0.2);
        gap: 0;
        padding: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 2999;
        box-sizing: border-box;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .nav-link {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
    }

    .nav-link:hover {
        background: rgba(0, 255, 255, 0.1);
    }

    .nav-account {
        margin-left: auto;
    }

    .login-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    .account-menu {
        right: 0;
        left: auto;
    }

    .edit-character-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .edit-character-btn svg {
        width: 20px;
        height: 20px;
    }

    .character-name {
        font-size: 24px;
    }

    .character-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-width: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 15px;
    }

    .brand-title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .brand-tagline {
        font-size: 9px;
    }

    .nav-link {
        font-size: 15px;
    }

    .login-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .character-name {
        font-size: 20px;
    }

    .character-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-right {
        align-items: flex-start;
        width: 100%;
    }

    .character-meta {
        align-items: flex-start;
    }
}
